home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
batchut
/
strings2.zip
/
CHECKEX.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-11-11
|
574b
|
20 lines
rem----------------------------------------------------
rem CHECKEX.BAT - Scans the path for a program name.
rem----------------------------------------------------
@echo off
SET index=1
if exist %1.com echo %1.com
if exist %1.exe echo %1.exe
if exist %1.bat echo %1.bat
:loop
STRINGS pdir = PARSE %path%, %index%,;
IF . == .%pdir% GOTO exit
if exist %pdir%\%1.com echo %pdir%\%1.com
if exist %pdir%\%1.exe echo %pdir%\%1.exe
if exist %pdir%\%1.bat echo %pdir%\%1.bat
STRINGS index = ADD %index%, 1
GOTO loop
:exit
SET index=
SET pdir=